Skip to content

Update run.ps1#35

Merged
jonnords merged 1 commit intoOfficeDev:masterfrom
Aubeauch:patch-1
Apr 7, 2026
Merged

Update run.ps1#35
jonnords merged 1 commit intoOfficeDev:masterfrom
Aubeauch:patch-1

Conversation

@Aubeauch
Copy link
Copy Markdown
Contributor

@Aubeauch Aubeauch commented Aug 1, 2025

This came up in an escalation. I modified the if statement

from:
'if ($item.Name -notin $watchlist.results.SearchKey -and $item.Workload -notin $watchlist.results.Workload)'

to:
'if ($item.Name -notin $watchlist.results.SearchKey)'

The reason for this change was the presence of the workload was preventing new analytics rules based on prior existing workloads to not run due to the watchlist lookup failing. We traced it back to this condition: "-and $item.Workload -notin $watchlist.results.Workload"

This came up in an escalation. I modified the if statement 

from:
'if ($item.Name -notin $watchlist.results.SearchKey -and $item.Workload -notin $watchlist.results.Workload)'

to:
'if ($item.Name -notin $watchlist.results.SearchKey)'

The reason for this change was the presence of the workload was preventing new analytics rules based on prior existing workloads to not run due to the watchlist lookup failing. We traced it back to this condition: "-and $item.Workload -notin $watchlist.results.Workload"
@Aubeauch
Copy link
Copy Markdown
Contributor Author

Aubeauch commented Apr 7, 2026

@jonnords any possibility we can get this reviewed and merged? It's a simple change that was driven by a customer engagement.

Copy link
Copy Markdown
Contributor

@jonnords jonnords left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted change since it removes issue with new workloads like Copilot

@jonnords jonnords merged commit 363de6e into OfficeDev:master Apr 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants